<?php

namespace app\middleware;

use app\common\library\Auth as AuthLibrary;
use app\common\library\Jwt as JwtLibrary;

class Auth
{
    public function handle($request, \Closure $next)
    {
        app()->auth = AuthLibrary::instance();
        $pathInfo = app()->auth->getPathInfo($request);

        $claimData = JwtLibrary::instance()->getJwtClaimData();

//        print_r($claimData); exit;

        return $next($request);
    }
}